<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>传感器表</title>
    <link rel="shortcut icon" href="/img/favicon.ico">
    <link href="css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <!-- jqgrid-->
    <link href="css/plugins/jqgrid/ui.jqgrid.css?0820" rel="stylesheet">
    <link href="css/animate.css" rel="stylesheet">
    <link href="css/style.css?v=4.1.0" rel="stylesheet">
</head>

<body class="gray-bg">
<!--整体结构-->
<div class="wrapper wrapper-content  animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox ">
                <div class="ibox-title">
                    <h5>传感器表</h5>
                </div>
                <div class="ibox-content">
                    <div class="jqGrid_wrapper">
                        <table id="table_sensor"></table>
                        <div id="pager_sensor"></div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<!--用于添加数据的表单-->
<div class="modal fade" id="addDlg" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog"style="width:800px;">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title" id="myModalLabel">添加数据</h4>
            </div>
            <div class="modal-body">
                <form name="add" id="form_add" class="form-horizontal" style="">
                    <div class="form-group">
                        <label for="addsensoId" class="col-sm-2 control-label" style="margin:0 auto;">传感器序号：</label>
                        <div class="col-sm-3">
                            <input class="form-control" type="text" id="addsensoId" name="sensoId" style="margin:0 auto;"/>
                        </div>
                        <label for="addsensoCategory" class="col-sm-2 control-label" style="margin:0 auto;">传感器类别：</label>
                        <div class="col-sm-3">
                            <input class="form-control" type="text" id="addsensoCategory" name="sensoCategory" style="margin:0 auto;"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="addsensoName" class="col-sm-2 control-label" style="margin:0 auto;">传感器名称：</label>
                        <div class="col-sm-3">
                            <input class="form-control" type="text" id="addsensoName" name="sensoName" style="margin:0 auto;"/>
                        </div>
                        <label for="addnameEngli" class="col-sm-2 control-label" style="margin:0 auto;">英文名称：</label>
                        <div class="col-sm-3">
                            <input class="form-control" type="text" id="addnameEngli" name="nameEngli" style="margin:0 auto;"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="addphysiCount" class="col-sm-2 control-label" style="margin:0 auto;">物理量数：</label>
                        <div class="col-sm-3">
                            <input class="form-control" type="text" id="addphysiCount" name="physiCount" style="margin:0 auto;"/>
                        </div>
                        <label for="addphysiQuantity1" class="col-sm-2 control-label" style="margin:0 auto;">物理量一：</label>
                        <div class="col-sm-3">
                            <input class="form-control" type="text" id="addphysiQuantity1" name="physiQuantity1" style="margin:0 auto;"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="addphysiQuantity2" class="col-sm-2 control-label" style="margin:0 auto;">物理量二：</label>
                        <div class="col-sm-3">
                            <input class="form-control" type="text" id="addphysiQuantity2" name="physiQuantity2" style="margin:0 auto;"/>
                        </div>
                        <label for="addphysiQuantity3" class="col-sm-2 control-label" style="margin:0 auto;">物理量三：</label>
                        <div class="col-sm-3">
                            <input class="form-control" type="text" id="addphysiQuantity3" name="physiQuantity3" style="margin:0 auto;"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="addsensoPrinc" class="col-sm-2 control-label" style="margin:0 auto;">传感器原理：</label>
                        <div class="col-sm-3">
                            <input class="form-control" type="text" id="addsensoPrinc" name="sensoPrinc" style="margin:0 auto;"/>
                        </div>
                        <label for="addsensoAccur" class="col-sm-2 control-label" style="margin:0 auto;">精确度：</label>
                        <div class="col-sm-3">
                            <input class="form-control" type="text" id="addsensoAccur" name="sensoAccur" style="margin:0 auto;"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="addefficTime" class="col-sm-2 control-label" style="margin:0 auto;">效率时间：</label>
                        <div class="col-sm-3">
                            <input class="form-control" type="text" id="addefficTime" name="efficTime" style="margin:0 auto;"/>
                        </div>
                        <label for="addsensoAppli" class="col-sm-2 control-label" style="margin:0 auto;">传感器应用：</label>
                        <div class="col-sm-3">
                            <input class="form-control" type="text" id="addsensoAppli" name="sensoAppli" style="margin:0 auto;"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="addsensoLimit" class="col-sm-2 control-label" style="margin:0 auto;">传感器限制：</label>
                        <div class="col-sm-3">
                            <input class="form-control" type="text" id="addsensoLimit" name="sensoLimit" style=margin:0 auto;"/>
                        </div>
                        <label for="addsensoWeigh" class="col-sm-2 control-label" style="margin:0 auto;">传感器重量：</label>
                        <div class="col-sm-3">
                            <input class="form-control" type="text" id="addsensoWeigh" name="sensoWeigh" style="margin:0 auto;"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="addsensoVolum" class="col-sm-2 control-label" style="margin:0 auto;">传感器宽度：</label>
                        <div class="col-sm-3">
                            <input class="form-control" type="text" id="addsensoVolum" name="sensoVolum" style="margin:0 auto;"/>
                        </div>
                        <label for="addsensoMater" class="col-sm-2 control-label" style="margin:0 auto;">传感器原料：</label>
                        <div class="col-sm-3">
                            <input class="form-control" type="text" id="addsensoMater" name="sensoMater" style="margin:0 auto;"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="addcostTime" class="col-sm-2 control-label" style="margin:0 auto;">花费时间：</label>
                        <div class="col-sm-3">
                            <input class="form-control" type="text" id="addcostTime" name="costTime" style="margin:0 auto;"/>
                        </div>
                        <label for="addcostMoney" class="col-sm-2 control-label" style="margin:0 auto;">花费金钱：</label>
                        <div class="col-sm-3">
                            <input class="form-control" type="text" id="addcostMoney" name="costMoney" style="margin:0 auto;"/>
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button id="add_button" type="submit" class="btn btn-primary" >确定</button>
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>
<!--用于编辑数据的表单-->
<div class="modal fade" id="editDlg" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog"style="width:800px;">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title" id="edit">编辑数据</h4>
            </div>
            <div class="modal-body">
                <form name="add" id="form_edit" class="form-horizontal" style="">
                    <div class="form-group">
                        <label for="editsensoId" class="col-sm-2 control-label" style="margin:0 auto;">传感器序号：</label>
                        <div class="col-sm-3">
                            <input class="form-control" type="text" id="editsensoId" name="sensoId" style="margin:0 auto;"/>
                        </div>
                        <label for="editsensoCategory" class="col-sm-2 control-label" style="margin:0 auto;">传感器类别：</label>
                        <div class="col-sm-3">
                            <input class="form-control" type="text" id="editsensoCategory" name="sensoCategory" style="margin:0 auto;"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="editsensoName" class="col-sm-2 control-label" style="margin:0 auto;">传感器名称：</label>
                        <div class="col-sm-3">
                            <input class="form-control" type="text" id="editsensoName" name="sensoName" style="margin:0 auto;"/>
                        </div>
                        <label for="editnameEngli" class="col-sm-2 control-label" style="margin:0 auto;">英文名称：</label>
                        <div class="col-sm-3">
                            <input class="form-control" type="text" id="editnameEngli" name="nameEngli" style="margin:0 auto;"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="editphysiCount" class="col-sm-2 control-label" style="margin:0 auto;">物理量数：</label>
                        <div class="col-sm-3">
                            <input class="form-control" type="text" id="editphysiCount" name="physiCount" style="margin:0 auto;"/>
                        </div>
                        <label for="editphysiQuantity1" class="col-sm-2 control-label" style="margin:0 auto;">物理量一：</label>
                        <div class="col-sm-3">
                            <input class="form-control" type="text" id="editphysiQuantity1" name="physiQuantity1" style="margin:0 auto;"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="editphysiQuantity2" class="col-sm-2 control-label" style="margin:0 auto;">物理量二：</label>
                        <div class="col-sm-3">
                            <input class="form-control" type="text" id="editphysiQuantity2" name="physiQuantity2" style="margin:0 auto;"/>
                        </div>
                        <label for="editphysiQuantity3" class="col-sm-2 control-label" style="margin:0 auto;">物理量三：</label>
                        <div class="col-sm-3">
                            <input class="form-control" type="text" id="editphysiQuantity3" name="physiQuantity3" style="margin:0 auto;"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="editsensoPrinc" class="col-sm-2 control-label" style="9margin:0 auto;">传感器原理：</label>
                        <div class="col-sm-3">
                            <input class="form-control" type="text" id="editsensoPrinc" name="sensoPrinc" style="margin:0 auto;"/>
                        </div>
                        <label for="editsensoAccur" class="col-sm-2 control-label" style="margin:0 auto;">精确度：</label>
                        <div class="col-sm-3">
                            <input class="form-control" type="text" id="editsensoAccur" name="sensoAccur" style="margin:0 auto;"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="editefficTime" class="col-sm-2 control-label" style="margin:0 auto;">效率时间：</label>
                        <div class="col-sm-3">
                            <input class="form-control" type="text" id="editefficTime" name="efficTime" style="margin:0 auto;"/>
                        </div>
                        <label for="editsensoAppli" class="col-sm-2 control-label" style="margin:0 auto;">传感器应用：</label>
                        <div class="col-sm-3">
                            <input class="form-control" type="text" id="editsensoAppli" name="sensoAppli" style="margin:0 auto;"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="editsensoLimit" class="col-sm-2 control-label" style="margin:0 auto;">传感器限制：</label>
                        <div class="col-sm-3">
                            <input class="form-control" type="text" id="editsensoLimit" name="sensoLimit" style=margin:0 auto;"/>
                        </div>
                        <label for="editsensoWeigh" class="col-sm-2 control-label" style="margin:0 auto;">传感器重量：</label>
                        <div class="col-sm-3">
                            <input class="form-control" type="text" id="editsensoWeigh" name="sensoWeigh" style="margin:0 auto;"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="editsensoVolum" class="col-sm-2 control-label" style="margin:0 auto;">传感器宽度：</label>
                        <div class="col-sm-3">
                            <input class="form-control" type="text" id="editsensoVolum" name="sensoVolum" style="margin:0 auto;"/>
                        </div>
                        <label for="editsensoMater" class="col-sm-2 control-label" style="margin:0 auto;">传感器原料：</label>
                        <div class="col-sm-3">
                            <input class="form-control" type="text" id="editsensoMater" name="sensoMater" style="margin:0 auto;"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="editcostTime" class="col-sm-2 control-label" style="margin:0 auto;">花费时间：</label>
                        <div class="col-sm-3">
                            <input class="form-control" type="text" id="editcostTime" name="costTime" style="margin:0 auto;"/>
                        </div>
                        <label for="editcostMoney" class="col-sm-2 control-label" style="margin:0 auto;">花费金钱：</label>
                        <div class="col-sm-3">
                            <input class="form-control" type="text" id="editcostMoney" name="costMoney" style="margin:0 auto;"/>
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button id="edit_button" type="button" class="btn btn-primary" >确定</button>
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>
<!--用于查找数据的表单-->
<div class="modal fade" id="searchDlg" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title" id="search">查找数据</h4>
            </div>
            <div class="modal-body">
                <select class="form-control" id="search_select" style="width:auto;margin:0 auto;position:absolute">
                    <option value="sensoId">传感器序号</option>
                    <option value="sensoCategory">传感器类别</option>
                    <option value="sensoName">传感器名称</option>
                    <option value="nameEngli">英文名称</option>
                    <option value="physiCount">物理量数</option>
                    <option value="physiQuantity1">物理量一</option>
                    <option value="physiQuantity2">物理量二</option>
                    <option value="physiQuantity3">物理量三</option>
                    <option value="sensoPrinc">传感器原理</option>
                    <option value="sensoAccur">精确度</option>
                    <option value="efficTime">效率时间</option>
                    <option value="sensoAppli">传感器应用</option>
                    <option value="sensoLimit">传感器限制</option>
                    <option value="sensoWeigh">传感器重量</option>
                    <option value="sensoVolum">传感器宽度</option>
                    <option value="sensoMater">传感器原料</option>
                    <option value="costTime">花费时间</option>
                    <option value="costMoney">花费金钱</option>
                </select>
                <form id="form_search">
                    <input class="form-control" style="width:auto;margin:0 auto" type="text" id="search_input" name="search_input" />
                </form>
                <!--</div>-->
            </div>
            <div class="modal-footer">
                <button id="search_button" type="button" class="btn btn-primary">确定</button>
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>

<!-- 全局js -->
<script src="js/jquery.min.js?v=2.1.4"></script>
<script src="js/bootstrap.min.js?v=3.3.6"></script>
<!-- Peity -->
<script src="js/plugins/peity/jquery.peity.min.js"></script>
<!-- jqGrid -->
<script src="js/plugins/jqgrid/i18n/grid.locale-cn.js?0820"></script>
<script src="js/plugins/jqgrid/jquery.jqGrid.min.js?0820"></script>
<!--layer-->
<script src="js/plugins/layer/layer.min.js"></script>
<!--validate-->
<script src="js/plugins/validate/jquery.validate.min.js"></script>
<script src="js/plugins/validate/messages_zh.min.js"></script>
<!-- 自定义js -->
<script src="js/content.js?v=1.0.0"></script>

<script src="js/apps/sensor/sensor.js"></script>
<script src="js/apps/common.js"></script>

</body>
</html>
